<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var scoreObject = {
    "Tony": {
        "Math": 95,
        "English": 79,
        "Music": 68
    }, 
    "Simon": {
        "Math": 100,
        "English": 95,
        "Music": 98
    }, 
    "Annie": {
        "Math": 54,
        "English": 65,
        "Music": 88
    }
}

//实现对象转换为数组
function objToArr(obj){
    var arr = [];
    //do something
    for (let i in obj){
        var arr2= [];
        arr2.push(i);
        for(let j in obj[i]){
            arr2.push(obj[i][j])
        }
        arr.push(arr2)
    }
    return arr
}
console.log(objToArr(scoreObject))


    </script>
</body>
</html>                                                                                                                                                                                                                                                                 